package com.rui.principles.demo02.after;
/**
 * @className    : Square
 * @author       : [锐神NO.3]
 * @version      : [v1.0]
 * @createTime   : [2022/2/8 14:42]
 * @description  : [正方形]
 */
 
public class Square implements Quadrilateral{

    /**
     * 正方形的边长
     */
    private double side;

    public double getSide() {
        return side;
    }

    public void setSide(double side) {
        this.side = side;
    }

    @Override
    public double getLength() {
        return side;
    }

    @Override
    public double getWidth() {
        return side;
    }
}
